import { extendApi } from '@inbiz/utils';

export default extendApi(
  (_events: any, {data, setData, BIPie}) => {
    return {
      loadData: setData,
      getData: () => data,
      setOption: (option: object) => BIPie?.current.setOption(option)
    };
  },
);
